# define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int main()
{
	int a = 0, b = 0, c = 0, d = 0, count = 0;
	scanf("%d %d", &a, &b);
	for (int i = 0; i < 32; i++)
	{
		c = 0, d = 0;
		c = 1 & (a >> i);
		d = 1 & (b >> i);
		if (c ^ d)
		{
			count++;
		}
	}
	printf("%d\n", count);
;	return 0;
}